<template>
	<view>
		<view  v-if="status == 0">
			<view class="myStep flex" v-for="(step,index) in numList" :key="index">
				<view class="stepIcon">
					<view class="stepLine"></view>
					<view class="stepDot"></view>
				</view>
				<view class="stepInfo">
					<view class="c9 fs26 address">{{step.tit}}</view>
					<view class="c9 fs20">{{step.time}}</view>
				</view>
			</view>
		</view>
		<view class="fs26 c9 u-text-center" v-else-if="status == 1">正在由商家配送，请注意查收~</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				status: 0,
				numList: [{
					tit: "【成都市】已离开成都分拨中心；发往四川成都高新区软件园公司",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "【成都市】已离开成都分拨中心；发往四川成都高新区软件园公司",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "【成都物流中心】快件已到达【成都中心】",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "快件离开【贵阳】 已发往【成都中转站】",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "快件离开【遵义凤冈县】 已发往【贵阳】",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "【遵义市】贵州遵义仓储分布 已揽收",
					time: "2020-08-12 20:28:31"
				}, {
					tit: "商家已发货，正在通知快递公司取件",
					time: "2020-08-12 20:28:31"
				}]
			}
		}
	}
</script>

<style scoped>
	.myStep {
		justify-content: flex-start;
		align-items: flex-start;
	}

	.myStep:first-child .stepLine {
		top: 35rpx !important;
	}

	.myStep:first-child .stepDot {
		width: 30rpx;
		height: 30rpx;
		border-radius: 15rpx;
		background: url(../../static/now.png) no-repeat center center/100% 100%;
		top: 30rpx;
	}

	.myStep:last-child .stepLine {
		height: 50rpx;
	}

	.stepIcon {
		width: 100rpx;
		min-height: 140rpx;
		position: relative;
	}

	.stepLine {
		width: 2rpx;
		height: 100%;
		background: #E0E0E0;
		position: absolute;
		top: 0;
		left: 50%;
	}

	.stepDot {
		width: 20rpx;
		height: 20rpx;
		border-radius: 10rpx;
		background: #E0E0E0;
		position: absolute;
		left: 0;
		top: 35rpx;
		right: 0;
		margin: 0 auto;
	}

	.stepInfo {
		padding: 20rpx 0;
		max-width: 600rpx;
	}

	.address {
		line-height: 38rpx;
	}
</style>
